namespace ShareMarking.Entity {
    	using System;


    /// <summary>
    /// 表名：qr_QrCode 主键列：scene_id
    /// </summary>
    [SerializableAttribute()]
    public partial class qr_QrCode : MySoft.Data.Entity
    {

        protected Int32 _id;

        protected Int32 _type;

        protected String _scene_id;

        protected String _sacode;

        protected String _title;

        protected String _remark;

        protected String _code_url;

        protected String _qrcode_url;

        protected Int32? _status;

        protected String _addtime;

        protected String _wx_title;

        protected String _wx_content;

        protected String _wx_imgurl;

        protected String _wx_url;

        protected DateTime? _DateModified;

        protected Boolean _isdelete;

        public Int32 id
        {
            get
            {
                return this._id;
            }
            set
            {
                this.OnPropertyValueChange(_.id, _id, value);
                this._id = value;
            }
        }

        public Int32 type
        {
            get
            {
                return this._type;
            }
            set
            {
                this.OnPropertyValueChange(_.type, _type, value);
                this._type = value;
            }
        }

        public String scene_id
        {
            get
            {
                return this._scene_id;
            }
            set
            {
                this.OnPropertyValueChange(_.scene_id, _scene_id, value);
                this._scene_id = value;
            }
        }

        public String sacode
        {
            get
            {
                return this._sacode;
            }
            set
            {
                this.OnPropertyValueChange(_.sacode, _sacode, value);
                this._sacode = value;
            }
        }

        public String title
        {
            get
            {
                return this._title;
            }
            set
            {
                this.OnPropertyValueChange(_.title, _title, value);
                this._title = value;
            }
        }

        public String remark
        {
            get
            {
                return this._remark;
            }
            set
            {
                this.OnPropertyValueChange(_.remark, _remark, value);
                this._remark = value;
            }
        }

        public String code_url
        {
            get
            {
                return this._code_url;
            }
            set
            {
                this.OnPropertyValueChange(_.code_url, _code_url, value);
                this._code_url = value;
            }
        }

        public String qrcode_url
        {
            get
            {
                return this._qrcode_url;
            }
            set
            {
                this.OnPropertyValueChange(_.qrcode_url, _qrcode_url, value);
                this._qrcode_url = value;
            }
        }

        public Int32? status
        {
            get
            {
                return this._status;
            }
            set
            {
                this.OnPropertyValueChange(_.status, _status, value);
                this._status = value;
            }
        }

        public String addtime
        {
            get
            {
                return this._addtime;
            }
            set
            {
                this.OnPropertyValueChange(_.addtime, _addtime, value);
                this._addtime = value;
            }
        }

        public String wx_title
        {
            get
            {
                return this._wx_title;
            }
            set
            {
                this.OnPropertyValueChange(_.wx_title, _wx_title, value);
                this._wx_title = value;
            }
        }

        public String wx_content
        {
            get
            {
                return this._wx_content;
            }
            set
            {
                this.OnPropertyValueChange(_.wx_content, _wx_content, value);
                this._wx_content = value;
            }
        }

        public String wx_imgurl
        {
            get
            {
                return this._wx_imgurl;
            }
            set
            {
                this.OnPropertyValueChange(_.wx_imgurl, _wx_imgurl, value);
                this._wx_imgurl = value;
            }
        }

        public String wx_url
        {
            get
            {
                return this._wx_url;
            }
            set
            {
                this.OnPropertyValueChange(_.wx_url, _wx_url, value);
                this._wx_url = value;
            }
        }

        public DateTime? DateModified
        {
            get
            {
                return this._DateModified;
            }
            set
            {
                this.OnPropertyValueChange(_.DateModified, _DateModified, value);
                this._DateModified = value;
            }
        }

        public Boolean isdelete
        {
            get
            {
                return this._isdelete;
            }
            set
            {
                this.OnPropertyValueChange(_.isdelete, _isdelete, value);
                this._isdelete = value;
            }
        }

        /// <summary>
        /// 获取实体对应的表名
        /// </summary>
        protected override MySoft.Data.Table GetTable()
        {
            return new MySoft.Data.Table<qr_QrCode>("qr_QrCode");
        }

        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        protected override MySoft.Data.Field[] GetPrimaryKeyFields()
        {
            return new MySoft.Data.Field[] {
    					_.scene_id};
        }

        /// <summary>
        /// 获取列信息
        /// </summary>
        protected override MySoft.Data.Field[] GetFields()
        {
            return new MySoft.Data.Field[] {
    					_.id,
    					_.type,
    					_.scene_id,
    					_.sacode,
    					_.title,
    					_.remark,
    					_.code_url,
    					_.qrcode_url,
    					_.status,
    					_.addtime,
    					_.wx_title,
    					_.wx_content,
    					_.wx_imgurl,
    					_.wx_url,
    					_.DateModified,
    					_.isdelete};
        }

        /// <summary>
        /// 获取列数据
        /// </summary>
        protected override object[] GetValues()
        {
            return new object[] {
    					this._id,
    					this._type,
    					this._scene_id,
    					this._sacode,
    					this._title,
    					this._remark,
    					this._code_url,
    					this._qrcode_url,
    					this._status,
    					this._addtime,
    					this._wx_title,
    					this._wx_content,
    					this._wx_imgurl,
    					this._wx_url,
    					this._DateModified,
    					this._isdelete};
        }

        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        protected override void SetValues(MySoft.Data.IRowReader reader)
        {
            if ((false == reader.IsDBNull(_.id)))
            {
                this._id = reader.GetInt32(_.id);
            }
            if ((false == reader.IsDBNull(_.type)))
            {
                this._type = reader.GetInt32(_.type);
            }
            if ((false == reader.IsDBNull(_.scene_id)))
            {
                this._scene_id = reader.GetString(_.scene_id);
            }
            if ((false == reader.IsDBNull(_.sacode)))
            {
                this._sacode = reader.GetString(_.sacode);
            }
            if ((false == reader.IsDBNull(_.title)))
            {
                this._title = reader.GetString(_.title);
            }
            if ((false == reader.IsDBNull(_.remark)))
            {
                this._remark = reader.GetString(_.remark);
            }
            if ((false == reader.IsDBNull(_.code_url)))
            {
                this._code_url = reader.GetString(_.code_url);
            }
            if ((false == reader.IsDBNull(_.qrcode_url)))
            {
                this._qrcode_url = reader.GetString(_.qrcode_url);
            }
            if ((false == reader.IsDBNull(_.status)))
            {
                this._status = reader.GetInt32(_.status);
            }
            if ((false == reader.IsDBNull(_.addtime)))
            {
                this._addtime = reader.GetString(_.addtime);
            }
            if ((false == reader.IsDBNull(_.wx_title)))
            {
                this._wx_title = reader.GetString(_.wx_title);
            }
            if ((false == reader.IsDBNull(_.wx_content)))
            {
                this._wx_content = reader.GetString(_.wx_content);
            }
            if ((false == reader.IsDBNull(_.wx_imgurl)))
            {
                this._wx_imgurl = reader.GetString(_.wx_imgurl);
            }
            if ((false == reader.IsDBNull(_.wx_url)))
            {
                this._wx_url = reader.GetString(_.wx_url);
            }
            if ((false == reader.IsDBNull(_.DateModified)))
            {
                this._DateModified = reader.GetDateTime(_.DateModified);
            }
            if ((false == reader.IsDBNull(_.isdelete)))
            {
                this._isdelete = reader.GetBoolean(_.isdelete);
            }
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if ((obj == null))
            {
                return false;
            }
            if ((false == typeof(qr_QrCode).IsAssignableFrom(obj.GetType())))
            {
                return false;
            }
            if ((((object)(this)) == ((object)(obj))))
            {
                return true;
            }
            return false;
        }

        public class _
        {

            /// <summary>
            /// 表示选择所有列，与*等同
            /// </summary>
            public static MySoft.Data.AllField All = new MySoft.Data.AllField<qr_QrCode>();

            /// <summary>
            /// 字段名：id - 数据类型：Int32
            /// </summary>
            public static MySoft.Data.Field id = new MySoft.Data.Field<qr_QrCode>("id");

            /// <summary>
            /// 字段名：type - 数据类型：Int32
            /// </summary>
            public static MySoft.Data.Field type = new MySoft.Data.Field<qr_QrCode>("type");

            /// <summary>
            /// 字段名：scene_id - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field scene_id = new MySoft.Data.Field<qr_QrCode>("scene_id");

            /// <summary>
            /// 字段名：sacode - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field sacode = new MySoft.Data.Field<qr_QrCode>("sacode");

            /// <summary>
            /// 字段名：title - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field title = new MySoft.Data.Field<qr_QrCode>("title");

            /// <summary>
            /// 字段名：remark - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field remark = new MySoft.Data.Field<qr_QrCode>("remark");

            /// <summary>
            /// 字段名：code_url - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field code_url = new MySoft.Data.Field<qr_QrCode>("code_url");

            /// <summary>
            /// 字段名：qrcode_url - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field qrcode_url = new MySoft.Data.Field<qr_QrCode>("qrcode_url");

            /// <summary>
            /// 字段名：status - 数据类型：Int32(可空)
            /// </summary>
            public static MySoft.Data.Field status = new MySoft.Data.Field<qr_QrCode>("status");

            /// <summary>
            /// 字段名：addtime - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field addtime = new MySoft.Data.Field<qr_QrCode>("addtime");

            /// <summary>
            /// 字段名：wx_title - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field wx_title = new MySoft.Data.Field<qr_QrCode>("wx_title");

            /// <summary>
            /// 字段名：wx_content - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field wx_content = new MySoft.Data.Field<qr_QrCode>("wx_content");

            /// <summary>
            /// 字段名：wx_imgurl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field wx_imgurl = new MySoft.Data.Field<qr_QrCode>("wx_imgurl");

            /// <summary>
            /// 字段名：wx_url - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field wx_url = new MySoft.Data.Field<qr_QrCode>("wx_url");

            /// <summary>
            /// 字段名：DateModified - 数据类型：DateTime(可空)
            /// </summary>
            public static MySoft.Data.Field DateModified = new MySoft.Data.Field<qr_QrCode>("DateModified");

            /// <summary>
            /// 字段名：isdelete - 数据类型：Boolean
            /// </summary>
            public static MySoft.Data.Field isdelete = new MySoft.Data.Field<qr_QrCode>("isdelete");
        }
    }
}
